<script src="../media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="../media/system/js/core.js" type="text/javascript"></script>
<form action="index.php?top=page&option=com_frtown" method="post" name="adminForm" id="adminForm">
<!-- LEFT -->
 <?php echo $this->loadTemplate('search','default') ?>
 <!-- END LEFT -->
 
 <!-- CONTENT -->
 <div id="jm-content">
    <div class="cc title">
        <div class="id"><?php echo $this->row->TOWN_CODE; ?></div>
        <div class="cc-title">
            <p class="top"><?php echo $this->row->TOWN_KANA; ?></p>
            <p class="bot"><?php echo $this->row->TOWN_NAME; ?></p>
        </div>
    </div>
    <div class="clearfix"></div>
 <!-- SUB MENU -->
    <div class="menu-cc">
        <ul id="nav">
        <?php 
            foreach(bgData::getMenuDetailTown() as $key=>$item){
                $acctive = 'normal';
                if(JRequest::getVar('task') == $key){
                    $acctive = 'current';
                }
         ?>
            <li class="<?php echo $acctive; ?>"><a href="index.php?top=page&option=com_frtown&task=<?php echo $key; ?>&id=<?php echo $this->row->TOWN_CODE; ?>"><?php echo $item; ?></a></li>
          <?php } ?>
        </ul>
    </div>
 <!-- END SUB MENU -->
    <h3 class="h_title">基本情報<span style="float: right;">更新日:<?php if($this->row->TOWN_DATE!='0000-00-00 00:00:00') echo HelperBG::F_GetDate_JP($this->row->TOWN_DATE); ?></span></h3>
    <div class="info-basic">
                                       
        <div>
                
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr>
                                <td><label class="title_">所在地</label></td>
                                <td width="20%">【郵便番号】</td>
                                <td width="70%" colspan="3"><?php if($this->row->TOWN_POST!=null) echo '〒'.$this->row->TOWN_POST; ?></td>
                            </tr> 
                           
                            <tr>
                                <td><br/></td>
                                <td valign="top">【住所】</td>
                                <td colspan="3"><?php echo $this->row->TOWN_ADD1; ?></td>
                            </tr>
                            <tr>
                                <td><br/></td>
                                <td valign="top"></td>
                                <td colspan="3"><?php echo $this->row->TOWN_ADD2; ?></td>
                            </tr>
                            
                            <tr>
                                <td><br/></td>
                                <td valign="top">【TEL／FAX】</td>
                                <td width="140">TEL:<?php echo $this->row->TOWN_TEL; ?></td>
                                <td width="30">／</td>
                                <td width="240">FAX:<?php echo $this->row->TOWN_FAX; ?></td>
                            </tr>
                            <tr>
                                <td><br></td>
                                <td>【最寄駅】</td>
                                <td colspan="3"><?php echo $this->row->TOWN_STAT; ?></td>
                            </tr>
                            <tr><td colspan="8"><hr /></td></tr>
                        </tbody>
                    </table>
                    <table width="100%" cellpadding="0" cellspacing="0" border=0>
                        <tbody>
                            <tr>
                                <td><label class="title_">問合せ先</label></td>
                                <!-- <td valign="top">【問合せ先】</td> -->
                                <td>【問合せ先】</td>
                                <td colspan="3"><?php echo $this->row->TOWN_CONT; ?></td>
                                
                            </tr>
                            <tr>
                                <td></td>
                                <td style="width: 20%;">【メール】</td>                 
                                <td colspan="3" style="width: 67%;" ><a href="mailto:<?php echo $this->row->TOWN_MAIL; ?>"><?php echo $this->row->TOWN_MAIL; ?></a></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>【URL】</td>
                                <td colspan="3"><a href="<?php echo $this->row->TOWN_URL; ?>" target="new"><?php echo $this->row->TOWN_URL; ?></a></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td valign="top">【地図】</td>
                                <td colspan="3"><a href="<?php echo $this->row->TOWN_MURL; ?>" target="new"><?php echo $this->row->TOWN_MURL; ?></a></td>
                            </tr>
                            <tr><td colspan="8"><hr /></td></tr>
                          </tbody>
                    </table>
                    <table width="100%" cellpadding="0" cellspacing="0" border=0>
                        <tbody>
                            
                            <tr>
                                <td><label class="title_">執行部等</label></td>
                                <!--<td valign="top">【市町村長名】</td>-->
                                <td>【市町村長名】</td>
                                <td style="width: 40%;"><?php echo $this->row->TOWN_HNAME; ?></td>
                                <td style="width: 11%;">【就任日】:</td>
                                <td style="width: 18%;" ><?php if($this->row->TOWN_HDATE!='0000-00-00 00:00:00') echo HelperBG::F_GetDate_JP($this->row->TOWN_HDATE); ?></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td valign="top">【教育長名】</td>
                                <td><?php echo $this->row->TOWN_ENAME; ?></td>
                                <td>【就任日】:</td>
                                <td><?php if($this->row->TOWN_EDATE!='0000-00-00 00:00:00') echo HelperBG::F_GetDate_JP($this->row->TOWN_EDATE); ?></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td valign="top">【議会議長名】</td>
                                <td><?php echo $this->row->TOWN_DNAME; ?></td>
                                <td></td>
                                <td></td>
                            </tr>
                            
                            <tr><td colspan="8"><hr /></td></tr>
                        </tbody>
                  </table>
                    <table width="100%" cellpadding="0" cellspacing="0" border=0>
                        <tbody>
                            <tr>
                                <td><label class="title_">数値情報</label></td>
                                <td style="width: 18%;">【人口／世帯数】</td>
                                <td width="30%" class="center"><?php echo $this->row->TOWN_POPU == null ? '' : number_format($this->row->TOWN_POPU, 0, '.', ',').'人';?></td>
                                <td width="5%">／</td>
                                <td width="30%"><?php echo $this->row->TOWN_HOUS == null ? '' : number_format($this->row->TOWN_HOUS, 0, '.', ',').'世帯';?></td>
                            </tr>
                            <tr>
                                <td><label class="title_"></label></td>
                                <!-- <td valign="top">【面積／密度】</td> -->
                                <td>【面積／密度】</td>
                                <td width="140" class="center"><?php echo $this->row->TOWN_AREA == null ? '' : number_format($this->row->TOWN_AREA, 2, '.', ',').'km<sup>2</sup>'; ?></td>
                                <td width="30">／</td>
                                <td width="240"><?php echo $this->row->TOWN_DENS == null ? '' : number_format($this->row->TOWN_DENS, 2, '.', ',').'人/km<sup>2</sup>'; ?></td>
                            </tr>
                            <tr><td colspan="8"><hr /></td></tr>
                        </tbody>
                    </table>
                    <table style="width: 100%;" cellpadding="0" cellspacing="0" border=0>
                        <tbody>
                            <tr>
                                <td style="vertical-align: top;"><label class="title_">PR</label></td>
                                
                                <td style="width: 630px;padding-left:5px;text-align: justify;"><?php echo HelperBGtop::newline2br($this->row->TOWN_PR); ?></td>
                              
                            </tr>
                            <tr><td colspan="8"><hr /></td></tr>
                        </tbody>
                    </table>
                    <tr>
                    
                    </tr> 
        </div>
    </div>
 </div>
 <!-- END CONTENT -->
    <input type="hidden" name="task" value="">
	<input type="hidden" name="boxchecked" value="0">
</form>                           